//
//  DFGridImageView.h
//  DFTimelineView
//
//  Created by Allen Zhong on 15/9/27.
//  Copyright (c) 2015年 Datafans, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol DFBigImgDelegate <NSObject>

@required

-(void) onClickBigImg;

@end

@interface DFGridImageView : UIView
@property (nonatomic,weak)id<DFBigImgDelegate>delegate;
-(void) updateWithSrcImages:(NSMutableArray *)srcImages oneImageWidth:(CGFloat)oneImageWidth oneImageHeight:(CGFloat)oneImageHeight;

+(CGFloat) getHeight:(NSMutableArray *) images maxWidth:(CGFloat)maxWidth oneImageWidth:(CGFloat)oneImageWidth oneImageHeight:(CGFloat)oneImageHeight;

//-(NSInteger) getIndexFromPoint: (CGPoint) point;

@end
